import { Component, OnInit } from '@angular/core';
import {ConfigService} from '../../services/config.service';
import {Router} from '@angular/router';

@Component({
  selector: 'app-productlist',
  templateUrl: './productlist.page.html',
  styleUrls: ['./productlist.page.scss'],
})
export class ProductlistPage implements OnInit {

  constructor(public config:ConfigService
  ,private router:Router) { }

  ngOnInit() {


  }

  add(){
    this.router.navigate(['productedit',{'state':'add'}]);
  }

  update(id:string){
      this.router.navigate(['productedit',{'state':'update'}]);

  }

}
